package com.frejoys.dao.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.frejoys.dao.entity.UserAddress;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

public interface UserAddressMapper extends BaseMapper<UserAddress> {

    @Select("select * from j_user_address where id=#{id} and user_id=#{userId} limit 1")
    UserAddress getInfoById(@Param("id") Integer id, @Param("userId") Long userId);

}
